#include "dashun.h"
#include <stdio.h>
#include <stdlib.h>
#include <wchar.h>
#define PRJ_NAME L"大顺"
int main(int argc, char** argv) {
    if (argc != 2) {
        printf("USAGE: dashun <sctipt name>\n");
        return 1;
    }

    wchar_t *msg = (wchar_t*)malloc(sizeof(wcslen(PRJ_NAME)));
    if (!msg) {
        perror("MALLOC");
        exit(4);
    }
    *msg = L'\0';
    wcscpy(msg, PRJ_NAME);
    struct ObjMap *M= crtNod(L"项目");
    struct ObjList ls;
    initList(&ls);
    //crtLnk(M, NULL);
    //crtLnk(M, NULL);
    //travObj(&ls, M);
    //printf("%zu\n", ls.size);
    //lsFree(&ls);

    size_t num = lexer_zh(argv[1]);
    printf("脚本行数：%zu\n", num);
    return 0;
}